<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>vue</title>
</head>
<body>
	<div id="app">
		{{a}}
	<ab :title=a></ab>
	</div>
	
	
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script type="text/javascript">
	var ab ={
		
		props:[
				'title'
			],

			template:'<h1>{{title}}</h1>'
	}
	
	new Vue({
		el:'#app',
		data:{
			a:1
		},
		components:{
			'ab':ab
			
		}

		
	})
	
</script>
</html>